<?php

namespace App\Controller\AdminApp;

use App\Base\BaseForm;
use App\Repository\OrdersRepository as Repository;
use App\Repository\AdminMenuRepository;
use App\Service\Jpush;
use Doctrine\ODM\MongoDB\DocumentManager;
use App\Base\IRI;
use Symfony\Component\HttpFoundation\Request;
use App\Base\BaseController4Admin;
use App\Entity\Orders as Entity;
use Symfony\Component\Routing\Annotation\Route;

/**
 * @Route("/admin/app")
 */
class DefaultAdminApiController extends BaseController4Admin
{
    public $noDelete = [];
    public $entityName = "Orders";
    public $limit = 10;

    /**
         * @Route("/default",name="AdminAppDefault")
     */
    public function getList(DocumentManager $documentManager)
    {
        return $this->json_out(1,'OK');
    }

    /**
         * @Route("/test",name="AdminAppDefaultTest")
     */
    public function AdminAppDefaultTest(Jpush $jpush)
    {
        $jpush->push();
        return $this->json_out(1,'OK');
    }
}
